const toBoolean = data => {
  if (typeof (data) == "boolean") {
    return data
  }

  return data == "true" ? true : false
}

module.exports = toBoolean
